package com.siyu.single.v1;

/**
 * @Author: siyu
 * @CreateTime: 2024-10-06
 * @Version: 1.0
 */
public class SingleObject {

    private static final SingleObject instance = new SingleObject();

    // 构造方法私有，其他地方创建不了对象，只能调用 getInstance
    private SingleObject() {
    }

    public static SingleObject getInstance() {
        return instance;
    }
}
